/* author: Mariana Horita
   mariana.horita@gmail.com
   file: A2E6.cs*/


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace Resolucao
{
    public partial class A2E6 : Form
    {
        int countClick = 0;

        public A2E6()
        {
            InitializeComponent();
        }


        private void timer1_Tick(object sender, EventArgs e)
        {
            
            MessageBox.Show("Finish!!! " + countClick  + "clicks");
            timer1.Stop();
            button1.Enabled = false;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            countClick++;
            if (!timer1.Enabled)
                timer1.Enabled = true;

        }

        private void timer2_Tick(object sender, EventArgs e)
        {
            
            label1.Text = countClick.ToString();
            
        }


      
        
    }
}
